Auto merge of #2269 - felixc:package-untracked-files, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 12 Jan 2016 17:18:05 +0000 (17:18 +0000)
committerbors <bors@rust-lang.org>
Tue, 12 Jan 2016 17:18:05 +0000 (17:18 +0000)
commit436a43aa336ab4d81dcc29eb8b48252a5103b4c3
tree184036ba7f8ede852d9dc51f0b975c5ac19d16a7
parentb3273e5826bd154cc4801633ae056fec787e2200
parente2cd4cdb52ecdefeae4b451d7316ac8f82606a3f
Auto merge of #2269 - felixc:package-untracked-files, r=alexcrichton

The logic in `sources/path.rs` that finds files that are untracked by the version control system was incorrectly including files that *are* tracked, but had been modified without the modification being committed to Git.

This manifested itself as strange duplications of files (e.g. in `cargo package --list`), since they were listed once as tracked files, and once more as allegedly "untracked" ones. It also caused failures when trying to package the crate when files had been deleted, but the deletion was not yet committed to Git.

Fixes #2199